import axios from '../axios';

export default {

    //获取保险产品
    async getInsuresInfo(params) {
        return await axios({
            url: '/insures/getInsures',
            method: 'GET',
            params
        })
    },

    //新增保险产品
    async addInsuresInfo(data) {
        return await axios({
            url: '/insures/addInsures',
            method: "POST",
            data
        })
    },

    //删除某保险产品
    async deleteInsureOne(_id) {
        return await axios({
            url: '/insures/deleteInsures',
            method: 'POST',
            data: { _id }
        })
    },

    //修改保险产品
    async updateInsures(data) {
        return await axios({
            url: '/insures/updateInsures',
            method: 'POST',
            data
        })
    },

    //搜索
    async searchInsures(params) {
        return await axios({
            url: "/insures/searchInsures",
            method: "GET",
            params
        })
    }
}


